<?php
/* 
 * ********* CVS HEADER ********* 
 * 
 * $RCSfile: admseqnew.php,v $ 
 * $Date: 2005/10/21 12:58:07 $ 
 * $Revision: 1.3 $ 
 * 
 * ********* CVS HEADER ********* 
 */
if($nom!="")
{
	$query="INSERT INTO sequence (nom,description) VALUES ('$nom','$description');";
	$result=rportalrequete($query) or die ("ERREUR 0013");
	$argid=rportallastid($result);
	header("Location: ?op=admseqdet&argid=$argid");
	exit;
}
?>
<?php
include("environnement/{$session['environnement']}/header.php");
require_once(get_path_module("admin"));
$pc = new panneau_controle();
$pc->calculRubriqueParFonction($op);
echo $pc->retourneEntete();
?>
<form method="post" action="?op=admseqnew">
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
      <td>nom</td>
    <td>
        <input type="text" name="nom">
      </td>
  </tr>
  <tr>
      <td>description</td>
    <td>
        <textarea name="description" rows="3"></textarea>
      </td>
  </tr>
  <tr>
    <td>
        <input type="submit" name="Submit" value="Envoyer">
      </td>
    <td>
        <input type="reset" name="Submit2" value="R&eacute;tablir">
      </td>
  </tr>
</table>
</form>
<?php
include("environnement/$session[environnement]/footer.php");
?>